import {createApp} from 'vue'
import App from './App.vue'
import {
    NavBar, Button, Tabbar, TabbarItem,
    Icon, Toast, Tag, Divider, Search,
    TreeSelect, Col, Row, Cell, CellGroup,
    Form, Field, Card, Empty, DatePicker,
    Skeleton, SkeletonTitle, SkeletonImage,
    SkeletonAvatar, SkeletonParagraph,
    Switch, Dialog, Space, TextEllipsis,
    NoticeBar, List, ContactCard, Uploader
}
    from 'vant';
import 'vant/lib/index.css';
import './global.css'
import * as VueRouter from 'vue-router';
import routes from "./config/router";
import "./assets/sexIcon/iconfont.css"
import "./assets/sexIcon/iconfont.js"


const app = createApp(App);
const router = VueRouter.createRouter({
    //history: VueRouter.createWebHashHistory(),
    history: VueRouter.createWebHistory(),
    routes, // `routes: routes` 的缩写
})
app.use(NavBar)
app.use(Button)
app.use(Tabbar)
app.use(Icon)
app.use(TabbarItem)
app.use(Toast)
app.use(Tag)
app.use(Divider)
app.use(Search)
app.use(TreeSelect)
app.use(Col)
app.use(Row)
app.use(Cell)
app.use(CellGroup)
app.use(Form)
app.use(Field)
app.use(Card)
app.use(Empty)
app.use(DatePicker)
app.use(Skeleton)
app.use(SkeletonTitle)
app.use(SkeletonImage)
app.use(SkeletonAvatar)
app.use(SkeletonParagraph)
app.use(Switch)
app.use(Dialog)
app.use(Space)
app.use(TextEllipsis)
app.use(NoticeBar)
app.use(List)
app.use(ContactCard)
app.use(Uploader)

app.use(router)

app.mount('#app')
